package com.yu.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whyxzz.arcface.ArcFace;
import com.yu.crm.domain.pojo.CrmUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author donnie-bin
 * @since 2019-06-10
 */
public interface CrmUserService extends IService<CrmUser> {

    CrmUser infoByUserId();

    IPage<CrmUser> list(IPage<CrmUser> page, CrmUser queryInfo);

    /**
     * 修改用户密码
     * @param entity
     * @return
     */
    Boolean updatePwd(CrmUser entity);

    void updateByUserId(CrmUser crmUser);

    CrmUser getByUserId(String userId);

    String isUser(byte[] bytes, ArcFace arcFace);

    Map<String, Object> login(HashMap<String, Object> map);

    boolean isByUserId(String userId);
}
